package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 *
 *
 * @author zhiyuan
 * @since 2023-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_tj")
@Schema(name = "EduStudentTj", title = "", description = "实体类")
public class EduStudentTj extends Model<EduStudentTj> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "studentTjId", title = "学生调剂主键")
    @TableId(value = "student_tj_id", type = IdType.ASSIGN_ID)
    private String studentTjId;

    @Schema(name = "studentEnrollId", title = "报名主键")
    @TableField(value = "student_enroll_id")
    private String studentEnrollId;

    @Schema(name = "fullName", title = "学生姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "idcard", title = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "fromSchoolId", title = "调出学校id")
    @TableField(value = "from_school_id")
    private String fromSchoolId;

    @Schema(name = "fromSchoolName", title = "调出学校名称")
    @TableField(value = "from_school_name")
    private String fromSchoolName;

    @Schema(name = "toSchoolId", title = "调入学校id")
    @TableField(value = "to_school_id")
    private String toSchoolId;

    @Schema(name = "toSchoolName", title = "调入学校名称")
    @TableField(value = "to_school_name")
    private String toSchoolName;

    @Schema(name = "year", title = "招生年度")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "aspirationType", title = "第几志愿")
    @TableField(value = "aspiration_type", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String aspirationType;

    @Schema(name = "currentFlag", title = "当前标识 0 否 1 是")
    @TableField(value = "current_flag", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String currentFlag;

    @Schema(name = "tjType", title = "调剂类型 1 家长申请 2 学校直接调剂")
    @TableField(value = "tj_type")
    private String tjType;
    @Schema(name = "configTypeName", title = "招生计划类别")
    @TableField(value = "config_type_name")
    private String configTypeName;

    @Schema(name = "configName", title = "招生类别")
    @TableField(value = "config_name")
    private String configName;
    @Schema(name = "registerDate", title = "房产登记日期")
    @TableField(value = "register_date")
    private Date registerDate;
    @Schema(name = "qysj", title = "户籍启用时间")
    @TableField(value = "qysj")
    private String qysj;
    @Schema(name = "cbTotal", title = "累计缴费月数")
    @TableField(value = "cb_total")
    private Integer cbTotal;
    @Schema(name = "authStatus", title = "审核状态")
    @TableField(value = "auth_status", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String authStatus;

    @Schema(name = "authRemarks", title = "审核意见")
    @TableField(value = "auth_remarks")
    private String authRemarks;

    @Schema(name = "authTime", title = "审核时间")
    @TableField(value = "auth_time")
    private Date authTime;

    @Schema(name = "authUserId", title = "审核人")
    @TableField(value = "auth_user_id")
    private String authUserId;

    @Schema(name = "studentEnrollStatus", title = "报名表报名状态")
    @TableField(value = "student_enroll_status")
    private String studentEnrollStatus;

    @Schema(name = "studentAuthStatus", title = "报名表审核状态")
    @TableField(value = "student_auth_status")
    private String studentAuthStatus;

    @Schema(name = "studentAdmitFlag", title = "报名表录取状态")
    @TableField(value = "student_admit_flag")
    private String studentAdmitFlag;
    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;
    @Schema(name = "followFlag",title="是否长幼随学 0 否 1是")
    @TableField(value = "follow_flag", updateStrategy = FieldStrategy.NOT_NULL)
    private String followFlag;
    @Schema(name = "followIdcard",title="随学的兄/姐身份证号码")
    @TableField(value = "follow_idcard")
    private String followIdcard;
    @Schema(name = "followFullName", title = "随学的兄/姐姓名")
    @TableField(value = "follow_full_name")
    private String followFullName;
    @Schema(name = "followType", title = "随学的需求类型：1 本校就读 2 随兄组到调剂学校入学")
    @TableField(value = "follow_type")
    private String followType;
    @Schema(name = "followSchoolId", title = "随学的兄/姐学校id")
    @TableField(value = "follow_school_id")
    private String followSchoolId;
    @Schema(name = "followSchoolName", title = "随学的兄/姐学校名称")
    @TableField(value = "follow_school_name")
    private String followSchoolName;
    @Schema(name = "followSchoolClass", title = "随学的兄/姐学校年级班级")
    @TableField(value = "follow_school_class")
    private String followSchoolClass;
    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.studentTjId;
    }
}
